package com.sanyang.logistics.zhd.service;

import java.util.List;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.sanyang.logistics.pojo.OwnerTypeDim;
import com.sanyang.logistics.pojo.TruckDim;
import com.sanyang.logistics.zhd.dao.ITruckDimDao;

@Repository("truckService")
public class TruckDimServiceImpl implements ITruckDimService {

	@Autowired
	private ITruckDimDao truckDao;
	
	
	@Override
	public List<TruckDim> getAllTruck(TruckDim truckDim) {
		// TODO Auto-generated method stub
		return truckDao.getAllTruck(truckDim);
	}


	@Override
	public TruckDim getTruck(Integer truck_id) {
		// TODO Auto-generated method stub
		return truckDao.getTruck(truck_id);
	}


	@Override
	public void updateTruck(TruckDim truckDim) {
		// TODO Auto-generated method stub
		truckDao.updateTruck(truckDim);
	}


	@Override
	public void addTruck(TruckDim truckDim) {
		// TODO Auto-generated method stub
		truckDao.addTruck(truckDim);
	}


	@Override
	public void deleteTurck(Integer truck_id) {
		// TODO Auto-generated method stub
		truckDao.deleteTurck(truck_id);
	}


	@Override
	public TruckDim getTruckLicense(String license) {
		// TODO Auto-generated method stub
		return truckDao.getTruckLicense(license);
	}


	@Override
	public List<OwnerTypeDim> getAllOwnerTypeDim() {
		// TODO Auto-generated method stub
		return truckDao.getAllOwnerTypeDim();
	}

}
